<?php


return array(
    'app'  => array(
        'baseUri'       => env('APP_URL','http://pay.minho.com/'),
        'staticUri'     => env('APP_URL','http://pay.minho.com/'),
        'cacheDir'      => env('CACHE_DIR',RUNTIME_PATH . '/cache/'),
        'viewsDir'      => env('VIEWS_DIR', APP_PATH . '/views/'),
        //视图编译路径
        'compiledPath'  => env('compiledPath', RUNTIME_PATH . '/compiled/'),
        'compiledExtension' =>  env('compiledExtension','.compiled'),
        //一直编译视图
        'viewCompileAlways' => true ,
        'cryptEncode' => '*T$dSVdKh5vk8=eX'
    ),
    'certificate' => array(
        'rsa_public_key_path' => BASE_PATH . '/data/cert/rsa_public_key.pem',
        'rsa_private_key_path' => BASE_PATH . '/data/cert/rsa_private_key.pem',
        'rsa_pkcs8_private_key' => BASE_PATH . '/data/cert/rsa_pkcs8_private_key.pem'
    ),
    'database' => array(
        'default' => array(
            'host'      => env('DB_HOST', '127.0.0.1'),
            'port'      => env('DB_PORT', '3306'),
            'dbname'    => env('DB_DATABASE', 'cohuna_db'),
            'username'  => env('DB_USERNAME', 'root'),
            'password'  => env('DB_PASSWORD', '123456'),
            'prefix'    => env('DB_PREFIX','prefix'),
            'charset'   => 'utf8mb4',
            "options"   => array(
                PDO::MYSQL_ATTR_INIT_COMMAND => "SET NAMES 'UTF8MB4'",
                PDO::ATTR_CASE               => PDO::CASE_LOWER
            )
        )
    ),
    'session' => array(
        'default' => array(
            "uniqueId"   => "cohuna.",     //前缀
            "host"       => "192.168.3.104",    //Host地址
            "port"       => 6379,           //端口号
            "auth"       => null,             //认证信息
            "persistent" => false,          //是否是长连接
            "lifetime"   => 3600,           //默认生命周期
            "prefix"     => "cohuna_",      //Session前缀
            "index"      => 1,              //Redis数据库索引
        )
    ),
    'cache' => array(
        "lifetime" => 172800,
        'default' => array(
            "host"       => "192.168.3.104",
            "port"       => 6379,
            "auth"       => "",
            "persistent" => false,
            "index"      => 0,
        )
    ),
    'redis' => array(
        'default' => array(
            'host' => '192.168.0.226',
            'port' => 6379,
            'auth' => '',
            'persistent' => false,
            'index' => 0,
            'prefix' => 'cohuna.'
        )
    ),
    'currency_list' => array(
        'CNY'=>'人民币',
        'AUD'=>	'澳元',
        'CAD'=>	'加拿大元',
        'CHF'=>'瑞士法郎',
        'DKK'=>'丹麦克郎',
        'EUR'=>'欧元',
        'GBP'=>'英镑	',
        'HKD'=>'港币',
        'JPY'=>'日元	',
        'KRW'=>'韩币',
        'NOK'=>'挪威克郎',
        'NZD'=>'新西兰元',
        'SEK'=>'瑞典克郎',
        'SGD'=>'新加坡元',
        'THB'=>'泰铢',
        'USD'=>'美元'
    ),
    'trade_channel_list' => array(
        'alipay_app'    => '支付宝 APP 支付',
        'alipay_wap'    => '支付宝手机网页支付',
        'alipay_qr'     => '支付宝扫码支付',
        'alipay_scan'   => '支付宝条码支付',
        'alipay_pc_direct'  => '支付宝PC网页支付',
        'wxpay'         => '微信App支付',
        'wxpay_pub'     => '微信公众号支付',
        'wxpay_wap'     => '微信H5支付',
        'wxpay_lite'    => '微信小程序支付',
        'wxpay_pub_qr'  => '微信公众号扫码支付',
        'wxpay_pub_scan'=> '微信公众号刷卡支付',
        'qpay'          => 'QQ钱包支付',
        'qpay_pub'      => 'QQ钱包公众号支付',
        'upacp'         => '银联支付',
        'upacp_pc'      => '银联PC网页支付',
        'upacp_wap'     => '银联手机网页支付',
        'cp_b2b'        => '银联B2B网页支付',
        'applepay_upacp'=> 'Apple Pay',
        'bfb'           => '百度钱包 APP 支付',
        'bfb_wap'       => '百度钱包手机网页支付',
        'jdpay_wap'     => '京东手机网页支付',
        'yeepay_wap'    => '易宝手机网页支付',
        'cmb_wallet'    => '招行一网通',
        'isv_qr'        => '线下扫码（主扫）',
        'isv_scan'      => '线下扫码（被扫）	',
        'isv_wap'       => '线下扫码（固定码）',
        'balance'       => '余额',
    ),
    'trade_state_list' => array(
        'NOTPAY'        => '未支付',
        'SUCCESS'       => '支付成功',
        'CLOSED'        => '交易关闭',
        'REFUND'        => '退款',
        'REVOKED'       => '交易撤销',
        'USERPAYING'    => '用户支付中',
        'PAYERROR'      => '其他原因'
    ),
    'payment_platform_list' => array(
        'alipay' => array(
            'name' => '国内支付宝',
            'gateway_list' => array(
                'openapp' => array(
                    'name' => '蚂蚁金服开放平台',
                    'encryption_list' => array(
                        'SHA1WithRSA' => 'RSA(SHA1)密钥',
                        'SHA256WithRSA' => 'RSA2(SHA256)密钥',
                        'AES' => 'AES密钥'
                    ),
                    'channel' => array('alipay_app','alipay_wap','alipay_qr','alipay_scan','alipay_pc_direct')
                ),
                'partner' => array(
                    'name' => 'mapi网关',
                    'encryption_list' => array(
                        'MD5' => 'MD5密钥',
                        'SHA1WithRSA' => 'RSA(SHA1)密钥',
                        'DSA' => 'DSA密钥'
                    ),
                    'channel' => array('alipay_app','alipay_wap','alipay_pc_direct')
                )
            )),
        'wxpay' => array(
            'name' => '国内微信支付',
            'gateway_list' => array(
                'openapi' => array(
                    'name' => '微信支付平台',
                    'encryption_list' => array(
                        'MD5' => 'MD5密钥',
                        'HMAC-SHA256' => 'HMAC-SHA256密钥'
                    ),
                    'channel' => array('wxpay','wxpay_pub','wxpay_wap','wxpay_pub_qr','wxpay_pub_scan')
                )
            )),
        'alipay_global' => array(
            'name' => '国际支付宝',
            'gateway_list' => array(
                'partner' => array(
                    'name' => 'mapi网关',
                    'encryption_list' => array(
                        'MD5' => 'MD5密钥',
                        'SHA1WithRSA' => 'RSA(SHA1)密钥',
                        'DSA' => 'DSA密钥'
                    ),
                    'channel' => array('alipay_app','alipay_wap','alipay_pc_direct')
                )
            )),
        'wxpay_global' => array(
            'name' => '国际微信支付',
            'gateway_list' => array(
                'openapi' => array(
                    'name' => '微信支付平台',
                    'encryption_list' => array(
                        'MD5' => 'MD5密钥',
                        'HMAC-SHA256' => 'HMAC-SHA256密钥'
                    ),
                    'channel' => array('wxpay','wxpay_pub','wxpay_wap','wxpay_pub_qr','wxpay_pub_scan')
                )
            ))
    )
);